import requests

#requests库中的get()方法实现GET请求

# r = requests.get('https://www.baidu.com/')
# r = requests.post('https://httpbin.org/post')
# r = requests.put('https://httpbin.org/put')
# r = requests.delete('https://httpbin.org/delete')
# r = requests.head('https://httpbin.org/get')
# r = requests.options('https://httpbin.org/get')


print(type(r))
print(r.status_code)
print(type(r.text))
print(r.text)
print(r.cookies)